package com.tianfeng.fenghuotoutiao.ui.activity.AppListActibity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.tianfeng.fenghuotoutiao.R;
import com.tianfeng.fenghuotoutiao.ui.activity.WebHelperActivity;


public class ApplistActivity extends Activity {
  String id;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_applist);
        id=getIntent().getStringExtra("id");
        Toast.makeText(this, id, Toast.LENGTH_SHORT).show();
    }

//    @Override
//    protected void initView(View rootView, Bundle savedInstanceState) {
//
//
//        setTitle("月入百万不是梦");
//
//
//
//
//
//
//    }
    public static Intent getIntent(Context context, String id){

        Intent intent = new Intent(context, WebHelperActivity.class);
        intent.putExtra("id",id);
        return intent;
    }

}
